//
//  BaseNetworkModel.swift
//  Doctor
//
//  Created by 陆海升 on 2017/9/12.
//  Copyright © 2017年 敬信. All rights reserved.
//

import Foundation
import Extend
import HandyJSON
import SwiftyJSON

open class BaseModel<T>: HandyJSON {
    public var code: String?
    public var err: String?
    
    public var data: T?
    
    required public init() {} // 如果定义是struct，连init()函数都不用声明；
}

///Example
open class ExamineModel: HandyJSON {
    public var id: String?;
    public var meetId: String?;
    public var moduleId: String?;
    public var endTime: Int?;
    public var finishTimes: String?;
    public var finished: String?;
    public var passScore: String?;
    public var resitTimes: String?;
    public var score: String?;
    public var serverTime: String?;
    public var startTime: String?;
    public var timeLimitType: String?;
    public var usetime: String?;
    
    public var paper: ExaminePaperModel?;
    
    required public init() {}
    
}

///Example
open class ExaminePaperModel: HandyJSON {
    public var id: String?;
    public var name: String?;
    public var paperName: String?;
    public var totalPoint: String?;
    
//    public var questions: Array<ExamineQuestionsModel>?;
    
    required public init() {}
}

